Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to create a fake properly that takes a pointer to function returning pointer #77

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Fix to create a fake properly that takes a pointer to function returning pointer #77

merged 2 commits into from
Apr 10, 2024

Conversation

sangmo-kang
Copy link
Contributor

Dear Maintainer,

I have encountered an issue with autofff when creating a fake that takes a pointer to a function returning a pointer. The issue arises because the 'PtrDecl' object does not have a 'declname' attribute.

Here is the error message for reference:

...
File "/home/sangmo.kang/workspace/autofff/autofff/generator.py", line 56, in _generateTypeDefForDecl
param.type.type.type.declname = name
AttributeError: 'PtrDecl' object has no attribute 'declname'
...

In response to this, I have attempted to fix the error and have also added a test to ensure its correctness.
I look forward to your feedback.

Thank you.

Copy link
Owner

@ChiefGokhlayeh ChiefGokhlayeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appriciated!

@ChiefGokhlayeh ChiefGokhlayeh merged commit de47f2d into ChiefGokhlayeh:master Apr 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants